const express = require("express")
const app = express()

const router = require("./router")

// 配置模板资源目录
app.set("views", "./views")
// 配置模板引擎
app.set("view engine", "ejs")
app.use(router)

app.listen(4000, () =>console.log("服务器启动成功"));

